package com.itisyue.mcpserver.config;

import com.itisyue.mcpserver.controller.HelloController;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ConfigService {
    @Bean
    ToolCallbackProvider toolCallbackProvider(HelloController helloController) {
        return MethodToolCallbackProvider.builder()
                .toolObjects( helloController)
                .build();
    }
}
